package com.jsbj.user.entities;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 通知表
 * </p>
 *
 * @author jsbj
 * @since 2023-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysNotice对象", description="通知表")
public class SysNotice implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "表ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "租户编码")
    private String tenantCode;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "类型 1考评任务通知  2其他通知")
    private Integer noticeType;

    @ApiModelProperty(value = "通知人员ids")
    private String userIds;

    @ApiModelProperty(value = "通知状态  1未发布  2发布")
    private Integer status;

    @ApiModelProperty(value = "资料上传开始日期")
    private String uploadStartDate;

    @ApiModelProperty(value = "资料上传结束日期")
    private String uploadEndDate;

    @ApiModelProperty(value = "是否可用  0可用 1不可用")
    @TableField(fill = FieldFill.INSERT)
    private Integer disabled;

    @ApiModelProperty(value = "创建人用户ID")
    private String createrId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "最后变更人用户ID")
    private String updateId;

    @ApiModelProperty(value = "最后变更时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField(exist = false)
    private String createName;

    @ApiModelProperty(value = "已读")
    @TableField(exist = false)
    private Integer read;

    @ApiModelProperty(value = "未读")
    @TableField(exist = false)
    private Integer unRead;

    @ApiModelProperty(value = "通知人")
    @TableField(exist = false)
    private String userNames;

}
